﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ue.CQRS.Events
{
    public interface IEventSource
    {
        /// <summary>
        /// 
        /// </summary>
        /// <summary>
        /// 事件源名称，默认是事件源对象的Type.Name
        /// 迷茫：name究竟有必要吗？
        /// </summary>
        string Name { get; }

        void RaiseEvent(IEvent @event);
    }
}
